package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-活动类型
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:19
 * @since v1.0
 */
@Getter
public enum MarketActivityGenreEnum {

    //促销活动
    PROMOTION("1", "enum.marketActivityGenre.name.promotion", "promotion"),
    //品牌活动
    BRAND("2", "enum.marketActivityGenre.name.brand", "brand"),
    //直播活动
    LIVE("3", "enum.marketActivityGenre.name.live", "live"),
    //会议营销
    MEETING_SALE("4", "enum.marketActivityGenre.name.meeting_sale", "meetingSale"),
    //电话营销
    TELEMARKETING("5", "enum.marketActivityGenre.name.telemarketing", "Telemarketing"),
    //其他
    OTHER("6", "enum.marketActivityGenre.name.other", "other"),

    ;

    private String code;
    private String name;
    private String attr;

    MarketActivityGenreEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
